package com.example.testtouch2;

import java.util.ArrayList;

import com.demo.androidgame.fx.DynamicGameObject;
import com.demo.androidgame.fx.math.Vector2;

public class Present2 extends DynamicGameObject {
	public static final float PRESENT_WIDTH = World.X_BOX;
	public static final float PRESENT_HEIGHT = World.Y_BOX;

	public static final int Present2_STATE_REMOVE = 1;

	public static final int Present2_STATE_luggage = 2;

	int state;
	float stateTime;
	Player player;
	
	ArrayList<PresentPosition> yellowStage;

	public Present2(float x, float y) {

		super(x, y, PRESENT_WIDTH, PRESENT_HEIGHT);

		this.stateTime = 0;
	}

	public void update(float deltaTime) {
		
		bounds.lowerLeft.set(position).sub(bounds.width / 2, bounds.height / 2);

		
		
		stateTime += deltaTime;

		
		
	}

	public void remove() {
		this.position.set(-World.X_BOX, -World.Y_BOX);
		state = Present2_STATE_REMOVE;
		stateTime = 0;
	}

	public void luggage(Vector2 PlayerPosition) {
		
		this.position.set(PlayerPosition);
		stateTime = 0;
	}

}